<div class="navbar">
    <php>
        $links = S('links');
        if(empty($links)){
        $links = M('links')->where(array('status' => 1 , 'is_where' => 2))->select(); 
        S('links',$links);
        $links = S('links');
        }
    </php>

<center>
  <foreach name='links' item='links'><a href="{$links.src}" target="_blank" title="{$links.remark}">{$links.title}</a>  &nbsp;&nbsp;
  </foreach> 
</center>
<center>Copyright © 2016-2018 Power By  <a href="https://gitee.com/shuiyueju" target="_blank" title="码云（水月居）">水月居</a></center>
</div> 